home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Apple Guide / Authoring / Documentation / Example Source Files Appdx C / DCC SW.src < prev    next >
Encoding:
Text File  |  1994-11-22  |  1.2 KB  |  45 lines  |  [TEXT/ttxt]

  1. #SurfWriter specific context checks
  2.  
  3. # context checks can be specified in commands that specify conditional execution
  4. # such as the <Make Sure>, <Skip If>, and <If> commands
  5.  
  6. #You can also use the built-in condition functions checkBoxState and
  7. # radioButtonState.
  8.  
  9. #Additional context checks are defined in the Standard Setup file.
  10. # The Standard Setup file defines context checks such as
  11. # "ActiveWindow", "OpenWindow", "IsMenuItemChecked",  "InSystemFolder", and others
  12.  
  13. #This guide file currently uses the context checks
  14. # radioButtonState (built-in)  and "ActiveWindow" (defined in Standard Setup)
  15.  
  16. # *************************************************
  17. #Examples of context checks that the SurfWriter application might define:
  18.  
  19. #A context check definition
  20. #<DCC> "SWDictionaryIsOpen", 'MyEM', 'WAVE', LONG:1, LPSTRING
  21.  
  22. #example uses:
  23. #<Make Sure> SWDictionaryIsOpen("Standard"), "SWOopsPanelSeq"
  24. #<Panel> "some panel"
  25. #<If> SWDictionaryIsOpen("Custom")
  26. #<Panel> "this panel"
  27. #<End if>
  28.  
  29. #Another context check definition
  30. #<DCC> "SWThesaurusIsOpen", 'MyEM', 'WAVE', LONG:2, LPSTRING
  31.  
  32. #example uses:
  33. #<Skip If> SWThesaurusIsOpen("Standard")
  34. #and
  35. #<Make Sure> SWThesaurusIsOpen("Standard")
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.